package HM02;

public class HomeWork08 {
	public static void main(String[] args) {
		ZeroEvenOdd zed = new ZeroEvenOdd(7);
		
		Thread A = new Thread(()->{
			try {
				zed.zero(System.out::print);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		});
		Thread B = new Thread(()->{
			try {
				zed.even(System.out::print);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		});
		Thread C = new Thread(()->{
			try {
				zed.odd(System.out::print);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		});
		A.start();B.start();C.start();
	}
}
